package com.nineclock.doc;


import com.nineclock.common.entity.Result;
import com.nineclock.document.dto.DocFileHistoryDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.List;


import com.nineclock.common.entity.PageResult;
import com.nineclock.common.entity.Result;
import com.nineclock.document.dto.DocFileDto;
import com.nineclock.document.dto.DocFolderDto;
import com.nineclock.document.dto.DocumentDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;



@Api(value = "文档管理接口",tags = "文档服务")
public interface DocControllerApi {


    @ApiOperation("历史记录查看")
    public Result<List<DocFileHistoryDto>> queryDocFileHistory(Integer fileId);

    @ApiOperation("文档列表查询")
    public Result<PageResult<DocFileDto>> queryDocByPage(String keyword, Long page, Long pageSize);

    @ApiOperation(("封禁/解禁文件"))
    public Result<DocFileDto> UpdateStatus(Long fileId, Short status);

    @ApiOperation("文档中心查看文档")
    public Result<DocumentDto> queryDocument(Long parentId, String keyword);

    @ApiOperation("新建文档")
    public Result insertFile(DocFileDto docFileDto);

    @ApiOperation("新建文件夹")
    public Result insertFolder(DocFolderDto docFolderDto);


}


